package com.qf.service.impl;

import com.qf.entity.User;
import com.qf.mapper.UserMapper;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 作者: 王鑫
 * 项目名: jxc1
 * 时间:2019/12/4  20:55
 * 描述:
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByUsername(String username) {

        User param = new User();
        param.setUsername(username);
        User user = userMapper.selectOne(param);
        return user;
    }
}
